<?php
class Plugin_LoadPagination extends Zend_View_Helper_Abstract{
   public function LoadPagination($num_data,$rows_per_page,$page_num,$url){
		require_once('Pagination/models/helper.php');
		$pagination = new Pagination();
		$result = $pagination->calculate_pages($num_data,$rows_per_page,$page_num);
		$surround = $pagination->get_surrounding_pages($page_num, $result['last'], $result['next']);
		require_once('Pagination/views/default.php');
   }
}